package org.meteorshower.employee_depart.util.enum_util;

import com.baomidou.mybatisplus.annotation.EnumValue;
import com.baomidou.mybatisplus.annotation.IEnum;
import lombok.Getter;

@Getter
public enum EducationEnum implements IEnum<Integer> {
    //无学历
    UNEDUCATED(0),

    //小学学历
    PRIMARY_SCHOOL(1),

    //初中学历
    MIDDLE_SCHOOL(2),

    //高中学历
    HIGH_SCHOOL(3),

    //大学专科学历
    COLLEGE(4),

    //大学本科学历
    UNIVERSITY(5),

    //硕士研究生学历
    MASTER(6),

    //博士研究生学历
    DOCTOR(7);

    @EnumValue
    private final Integer education;

    EducationEnum(Integer education) {
        this.education = education;
    }

    @Override
    public Integer getValue() {
        return education;
    }
}
